<?php if (!defined('THINK_PATH')) exit();?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="__ACSS__/css.css" rel="stylesheet" type="text/css">
<script language='javascript' src='__AJS__/public.js'></script>
<script src="__PUBLIC__/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/Public/Admin/Js/jquery.js"></script>

<style>
td,th {
	text-align: center
}
</style>
</head>
<SCRIPT language=javascript>
</SCRIPT>
<body>
<h1>
<span class="action-span"><a href="__GROUP__/Category/add">添加分类</a></span>
<span class="action-span1"><a href="">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 分类管理 </span>
<div style="clear:both"></div>
</h1>
	<form method='post' action='__URL__/deleteAll'>
		<table class="table" cellspacing="1" cellpadding="2" width="99%"
			align="center" border="0">
			<tbody>
				<tr>
					<th class="bg_tr" align="left" height="25">
						<input type='submit' name='deleteSubmit' value='删除' onclick="return confirm('你确定删除么?');"/>
					</th>
					<th class="bg_tr" align="left" height="25">序号</th>
					<th class="bg_tr" align="left" height="25">分类名称</th>
					<th class="bg_tr" align="left" height="25">分类描述</th>
					<th class="bg_tr" align="left" height="25">排序</th>
					<th class="bg_tr" align="left" height="25">操作</th>
				
				</tr>
				<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
					<td class="td_bg" width="3%">
						<input type='checkbox' value="<?php echo ($vo["c_id"]); ?>" name='id[]' />
					</td>
					<td class="td_bg" width="3%" height="23" align="center"><?php echo ($i); ?></td>
					<td class="td_bg" width="10%">
						<?php if($vo['c_parent_id'] == 0): ?><font color='red'>
							<strong><?php echo ($vo["c_name"]); ?></strong>
						</font> <?php else: ?><font color='red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="__AIMG__/menu_minus.gif"/><?php echo ($vo["c_name"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><?php endif; ?></td>
					<td id='desc' class="td_bg" width="50%"><?php echo ($vo["c_desc"]); ?></td>
					<td class="td_bg" width="4%"><?php echo ($vo["c_sort"]); ?></td>
				
					 <td width="10%" align="center" class="td_bg">
				      <a href="__GROUP__/Category/edit/id/<?php echo ($vo["c_id"]); ?>">编辑</a> |
				      <a href="__GROUP__/Category/del/id/<?php echo ($vo["c_id"]); ?>" onclick="return confirm('你确定删除么?');" title="移除">移除</a>
				    </td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				<tr>
					<td colspan="6"><?php echo ($show); ?></td>
				</tr>
			</tbody>
		</table>
	</form>
</body>
</html>